package com.mall.web.controller.goods.app;

import com.mall.common.core.controller.BaseController;
import com.mall.common.core.domain.AjaxResult;
import com.mall.goods.model.dto.GoodsCategoryDto;
import com.mall.goods.model.vo.GoodsCategoryVo;
import com.mall.goods.service.IGoodsCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 商城-商品分类Controller
 */
@RestController
@RequestMapping("/app/goods/goodsCategory")
public class AppGoodsCategoryController extends BaseController
{
    @Autowired
    private IGoodsCategoryService goodsCategoryService;

    /**
     * 查询商城-商品分类列表
     */
    @GetMapping("/list")
    public AjaxResult list(GoodsCategoryDto goodsCategoryDto)
    {
        List<GoodsCategoryVo> list = goodsCategoryService.selectGoodsCategoryList(goodsCategoryDto);
        return success(list);
    }

}
